#!/bin/bash
set -e

mkdir -p build_ios && cd build_ios

cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake \
      -DPLATFORM=OS64 \
      -DIOS_DEPLOYMENT_TARGET="14.0" \
      ..

# 构建项目
cmake --build . --config Release

cd ..

echo "iOS build completed successfully"
